app(cuthill cuthill.cpp)
app(cuthill-distr cuthill-distr.cpp)

if(0)
  set(CMAKE_PREFIX_PATH /net/faraday/workspace/local/modules/trilinos-11.2.3/lib/cmake/Trilinos ${CMAKE_PREFIX_PATH})
  find_package(Trilinos REQUIRED)
  include_directories(${Trilinos_INCLUDE_DIRS} ${Trilinos_TPL_INCLUDE_DIRS})
  link_directories(${Trilinos_LIBRARY_DIRS} ${Trilinos_TPL_LIBRARY_DIRS})
  set(CMAKE_CXX_COMPILER ${Trilinos_CXX_COMPILER} )
  set(CMAKE_C_COMPILER ${Trilinos_C_COMPILER} )
  set(CMAKE_Fortran_COMPILER ${Trilinos_Fortran_COMPILER} )
  set(CMAKE_CXX_FLAGS  "${Trilinos_CXX_COMPILER_FLAGS} ${CMAKE_CXX_FLAGS}")
  set(CMAKE_C_FLAGS  "${Trilinos_C_COMPILER_FLAGS} ${CMAKE_C_FLAGS}")
  set(CMAKE_Fortran_FLAGS  "${Trilinos_Fortran_COMPILER_FLAGS} ${CMAKE_Fortran_FLAGS}")
  app(cuthill-trilinos cuthill-trilinos.cpp)
  target_link_libraries(cuthill-trilinos ${Trilinos_LIBRARIES} ${Trilinos_TPL_LIBRARIES})
endif()

add_subdirectory(serial)
